<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车案例</title>
    <style>
        a {
            /*a标签的大小为图片的一半*/
            width: 67px;
            height: 32px;
            background: url("../image/cart.png");
            display: block;
        }

        a:hover {
            /*显示a背景图片的下半部分*/
            background-position: left bottom;
        }
    </style>
</head>
<body>
<a href="#"></a>

</body>
</html>